/**
 * @author 小童
 * @version 1.0
 * @date 2022-04-06
 */
import {getRequest, postRequest} from "@/util/axios";

export  const getRelationByPage = (relation)=>postRequest('/relation/getRelationByPage',relation)

export  const addRelation = (relation)=>postRequest('/relation/add',relation)

export  const updateRelation = (relation)=>postRequest('/relation/update',relation)

export  const deleteRelation = (id)=>postRequest('/relation/remove',{id})

export const getAllRelation = () =>getRequest('/relation/getAllRelation');

export const getAllRelationMapping = (relationMapping) =>postRequest('/relationMapping/getRelationMapping',relationMapping)

export const deleteRelationMapping =(id)=>getRequest('/relationMapping/remove',{id})

export const addRelationMapping = (relationMapping) =>postRequest('relationMapping/add',relationMapping)

export const updateRelationMapping = (relationMapping) =>postRequest('relationMapping/update',relationMapping)
